Skip to main content

Design Patterns

There are three main reasons why you would want to use design patterns in JavaScript:

  • Maintainability:

    • Helps in keeping the modules loosely copupled
    • Easy to work in large teams
  • Communication

    • Provides common vocabulary while dealing with different types of objects
  • Performance

    • Some patterns helps in performance

Implementing patterns is the easy part; knowing which one to use (and when) is the hard part